//
// SVN Notifier
// Copyright 2007 SIA Computer Hardware Design (www.chd.lv)
//
// This file is part of SVN Notifier.
//
// SVN Notifier is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// SVN Notifier is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>
//

using System.Drawing;
using System.IO;
using System.Windows.Forms;

namespace CHD.SVN_Notifier
{
	public class SettingsForm : Form
	{
		#region Windows Form Designer generated code

		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.TextBox textBox_SVNpath;
		private System.Windows.Forms.TextBox textBox_TortoiseSVNpath;
		private System.Windows.Forms.Button button_OK;
		private System.Windows.Forms.Button button_Cancel;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Button button_BrowseSvn;
		private System.Windows.Forms.Button button_BrowseTortoise;
		private System.Windows.Forms.OpenFileDialog openFileDialog_svn;
		private System.Windows.Forms.OpenFileDialog openFileDialog_Tortoise;
		private System.Windows.Forms.ComboBox comboBox_ItemActions;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.CheckBox checkBox_HideOnStartup;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.NumericUpDown numericUpDown_DefaultActiveStatusUpdateIntervalSec;
		private System.Windows.Forms.NumericUpDown numericUpDown_DefaultIdleStatusUpdateIntervalSec;
		private System.Windows.Forms.NumericUpDown numericUpDown_DefaultActiveStatusUpdateIntervalMin;
		private System.Windows.Forms.NumericUpDown numericUpDown_DefaultIdleStatusUpdateIntervalMin;
		private System.Windows.Forms.CheckBox checkBox_CheckForNewVersion;
		private System.Windows.Forms.NumericUpDown numericUpDown_ShowBallonInterval;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.NumericUpDown numericUpDown_DefaultIdleStatusUpdateIntervalHour;
		private System.Windows.Forms.NumericUpDown numericUpDown_DefaultActiveStatusUpdateIntervalHour;
		private System.Windows.Forms.CheckBox checkBox_ChangeLogBeforeUpdate;

		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}


		public SettingsForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.textBox_SVNpath = new System.Windows.Forms.TextBox();
			this.textBox_TortoiseSVNpath = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.numericUpDown_DefaultActiveStatusUpdateIntervalSec = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_DefaultIdleStatusUpdateIntervalSec = new System.Windows.Forms.NumericUpDown();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.label13 = new System.Windows.Forms.Label();
			this.label12 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.numericUpDown_DefaultIdleStatusUpdateIntervalHour = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_DefaultActiveStatusUpdateIntervalHour = new System.Windows.Forms.NumericUpDown();
			this.label9 = new System.Windows.Forms.Label();
			this.numericUpDown_DefaultIdleStatusUpdateIntervalMin = new System.Windows.Forms.NumericUpDown();
			this.label8 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.numericUpDown_DefaultActiveStatusUpdateIntervalMin = new System.Windows.Forms.NumericUpDown();
			this.label6 = new System.Windows.Forms.Label();
			this.button_OK = new System.Windows.Forms.Button();
			this.button_Cancel = new System.Windows.Forms.Button();
			this.button_BrowseSvn = new System.Windows.Forms.Button();
			this.button_BrowseTortoise = new System.Windows.Forms.Button();
			this.openFileDialog_svn = new System.Windows.Forms.OpenFileDialog();
			this.openFileDialog_Tortoise = new System.Windows.Forms.OpenFileDialog();
			this.comboBox_ItemActions = new System.Windows.Forms.ComboBox();
			this.label7 = new System.Windows.Forms.Label();
			this.checkBox_HideOnStartup = new System.Windows.Forms.CheckBox();
			this.checkBox_CheckForNewVersion = new System.Windows.Forms.CheckBox();
			this.numericUpDown_ShowBallonInterval = new System.Windows.Forms.NumericUpDown();
			this.label10 = new System.Windows.Forms.Label();
			this.checkBox_ChangeLogBeforeUpdate = new System.Windows.Forms.CheckBox();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultActiveStatusUpdateIntervalSec)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultIdleStatusUpdateIntervalSec)).BeginInit();
			this.groupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultIdleStatusUpdateIntervalHour)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultActiveStatusUpdateIntervalHour)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultIdleStatusUpdateIntervalMin)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultActiveStatusUpdateIntervalMin)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShowBallonInterval)).BeginInit();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 7);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(136, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "Path to svn.exe:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 55);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(136, 16);
			this.label2.TabIndex = 1;
			this.label2.Text = "Path to TortoiseProc.exe:";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// textBox_SVNpath
			// 
			this.textBox_SVNpath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.textBox_SVNpath.Location = new System.Drawing.Point(8, 24);
			this.textBox_SVNpath.Name = "textBox_SVNpath";
			this.textBox_SVNpath.Size = new System.Drawing.Size(318, 20);
			this.textBox_SVNpath.TabIndex = 1;
			this.textBox_SVNpath.Text = "";
			this.textBox_SVNpath.TextChanged += new System.EventHandler(this.CheckPathes);
			// 
			// textBox_TortoiseSVNpath
			// 
			this.textBox_TortoiseSVNpath.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.textBox_TortoiseSVNpath.Location = new System.Drawing.Point(8, 72);
			this.textBox_TortoiseSVNpath.Name = "textBox_TortoiseSVNpath";
			this.textBox_TortoiseSVNpath.Size = new System.Drawing.Size(318, 20);
			this.textBox_TortoiseSVNpath.TabIndex = 3;
			this.textBox_TortoiseSVNpath.Text = "";
			this.textBox_TortoiseSVNpath.TextChanged += new System.EventHandler(this.CheckPathes);
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(24, 32);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(168, 16);
			this.label3.TabIndex = 4;
			this.label3.Text = "When form is active, interval is:";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(8, 56);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(184, 16);
			this.label4.TabIndex = 5;
			this.label4.Text = "When form is not active, interval is:";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// numericUpDown_DefaultActiveStatusUpdateIntervalSec
			// 
			this.numericUpDown_DefaultActiveStatusUpdateIntervalSec.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.numericUpDown_DefaultActiveStatusUpdateIntervalSec.Location = new System.Drawing.Point(293, 32);
			this.numericUpDown_DefaultActiveStatusUpdateIntervalSec.Maximum = new System.Decimal(new int[] {
																											   59,
																											   0,
																											   0,
																											   0});
			this.numericUpDown_DefaultActiveStatusUpdateIntervalSec.Name = "numericUpDown_DefaultActiveStatusUpdateIntervalSec";
			this.numericUpDown_DefaultActiveStatusUpdateIntervalSec.Size = new System.Drawing.Size(40, 20);
			this.numericUpDown_DefaultActiveStatusUpdateIntervalSec.TabIndex = 0;
			this.numericUpDown_DefaultActiveStatusUpdateIntervalSec.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numericUpDown_DefaultActiveStatusUpdateIntervalSec.Value = new System.Decimal(new int[] {
																											 34,
																											 0,
																											 0,
																											 0});
			// 
			// numericUpDown_DefaultIdleStatusUpdateIntervalSec
			// 
			this.numericUpDown_DefaultIdleStatusUpdateIntervalSec.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.numericUpDown_DefaultIdleStatusUpdateIntervalSec.Location = new System.Drawing.Point(293, 56);
			this.numericUpDown_DefaultIdleStatusUpdateIntervalSec.Maximum = new System.Decimal(new int[] {
																											 59,
																											 0,
																											 0,
																											 0});
			this.numericUpDown_DefaultIdleStatusUpdateIntervalSec.Name = "numericUpDown_DefaultIdleStatusUpdateIntervalSec";
			this.numericUpDown_DefaultIdleStatusUpdateIntervalSec.Size = new System.Drawing.Size(40, 20);
			this.numericUpDown_DefaultIdleStatusUpdateIntervalSec.TabIndex = 1;
			this.numericUpDown_DefaultIdleStatusUpdateIntervalSec.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numericUpDown_DefaultIdleStatusUpdateIntervalSec.Value = new System.Decimal(new int[] {
																										   34,
																										   0,
																										   0,
																										   0});
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.label13);
			this.groupBox1.Controls.Add(this.label12);
			this.groupBox1.Controls.Add(this.label11);
			this.groupBox1.Controls.Add(this.numericUpDown_DefaultIdleStatusUpdateIntervalHour);
			this.groupBox1.Controls.Add(this.numericUpDown_DefaultActiveStatusUpdateIntervalHour);
			this.groupBox1.Controls.Add(this.label9);
			this.groupBox1.Controls.Add(this.numericUpDown_DefaultIdleStatusUpdateIntervalMin);
			this.groupBox1.Controls.Add(this.label8);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.numericUpDown_DefaultActiveStatusUpdateIntervalMin);
			this.groupBox1.Controls.Add(this.label6);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.numericUpDown_DefaultIdleStatusUpdateIntervalSec);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.numericUpDown_DefaultActiveStatusUpdateIntervalSec);
			this.groupBox1.Location = new System.Drawing.Point(8, 112);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(344, 88);
			this.groupBox1.TabIndex = 5;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Default status updating interval";
			// 
			// label13
			// 
			this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label13.Location = new System.Drawing.Point(236, 32);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(8, 16);
			this.label13.TabIndex = 19;
			this.label13.Text = ":";
			this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label12
			// 
			this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label12.Location = new System.Drawing.Point(236, 56);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(8, 16);
			this.label12.TabIndex = 18;
			this.label12.Text = ":";
			this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(200, 16);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(40, 16);
			this.label11.TabIndex = 17;
			this.label11.Text = "Hours";
			// 
			// numericUpDown_DefaultIdleStatusUpdateIntervalHour
			// 
			this.numericUpDown_DefaultIdleStatusUpdateIntervalHour.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.numericUpDown_DefaultIdleStatusUpdateIntervalHour.Location = new System.Drawing.Point(197, 56);
			this.numericUpDown_DefaultIdleStatusUpdateIntervalHour.Maximum = new System.Decimal(new int[] {
																											  59,
																											  0,
																											  0,
																											  0});
			this.numericUpDown_DefaultIdleStatusUpdateIntervalHour.Name = "numericUpDown_DefaultIdleStatusUpdateIntervalHour";
			this.numericUpDown_DefaultIdleStatusUpdateIntervalHour.Size = new System.Drawing.Size(40, 20);
			this.numericUpDown_DefaultIdleStatusUpdateIntervalHour.TabIndex = 16;
			this.numericUpDown_DefaultIdleStatusUpdateIntervalHour.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numericUpDown_DefaultIdleStatusUpdateIntervalHour.Value = new System.Decimal(new int[] {
																											12,
																											0,
																											0,
																											0});
			// 
			// numericUpDown_DefaultActiveStatusUpdateIntervalHour
			// 
			this.numericUpDown_DefaultActiveStatusUpdateIntervalHour.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.numericUpDown_DefaultActiveStatusUpdateIntervalHour.Location = new System.Drawing.Point(197, 32);
			this.numericUpDown_DefaultActiveStatusUpdateIntervalHour.Maximum = new System.Decimal(new int[] {
																												59,
																												0,
																												0,
																												0});
			this.numericUpDown_DefaultActiveStatusUpdateIntervalHour.Name = "numericUpDown_DefaultActiveStatusUpdateIntervalHour";
			this.numericUpDown_DefaultActiveStatusUpdateIntervalHour.Size = new System.Drawing.Size(40, 20);
			this.numericUpDown_DefaultActiveStatusUpdateIntervalHour.TabIndex = 15;
			this.numericUpDown_DefaultActiveStatusUpdateIntervalHour.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numericUpDown_DefaultActiveStatusUpdateIntervalHour.Value = new System.Decimal(new int[] {
																											  12,
																											  0,
																											  0,
																											  0});
			// 
			// label9
			// 
			this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label9.Location = new System.Drawing.Point(285, 56);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(8, 16);
			this.label9.TabIndex = 14;
			this.label9.Text = ":";
			this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// numericUpDown_DefaultIdleStatusUpdateIntervalMin
			// 
			this.numericUpDown_DefaultIdleStatusUpdateIntervalMin.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.numericUpDown_DefaultIdleStatusUpdateIntervalMin.Location = new System.Drawing.Point(245, 56);
			this.numericUpDown_DefaultIdleStatusUpdateIntervalMin.Maximum = new System.Decimal(new int[] {
																											 59,
																											 0,
																											 0,
																											 0});
			this.numericUpDown_DefaultIdleStatusUpdateIntervalMin.Name = "numericUpDown_DefaultIdleStatusUpdateIntervalMin";
			this.numericUpDown_DefaultIdleStatusUpdateIntervalMin.Size = new System.Drawing.Size(40, 20);
			this.numericUpDown_DefaultIdleStatusUpdateIntervalMin.TabIndex = 13;
			this.numericUpDown_DefaultIdleStatusUpdateIntervalMin.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numericUpDown_DefaultIdleStatusUpdateIntervalMin.Value = new System.Decimal(new int[] {
																										   12,
																										   0,
																										   0,
																										   0});
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(288, 16);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(48, 16);
			this.label8.TabIndex = 12;
			this.label8.Text = "Seconds";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(241, 16);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(48, 16);
			this.label5.TabIndex = 11;
			this.label5.Text = "Minutes";
			// 
			// numericUpDown_DefaultActiveStatusUpdateIntervalMin
			// 
			this.numericUpDown_DefaultActiveStatusUpdateIntervalMin.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.numericUpDown_DefaultActiveStatusUpdateIntervalMin.Location = new System.Drawing.Point(245, 32);
			this.numericUpDown_DefaultActiveStatusUpdateIntervalMin.Maximum = new System.Decimal(new int[] {
																											   59,
																											   0,
																											   0,
																											   0});
			this.numericUpDown_DefaultActiveStatusUpdateIntervalMin.Name = "numericUpDown_DefaultActiveStatusUpdateIntervalMin";
			this.numericUpDown_DefaultActiveStatusUpdateIntervalMin.Size = new System.Drawing.Size(40, 20);
			this.numericUpDown_DefaultActiveStatusUpdateIntervalMin.TabIndex = 10;
			this.numericUpDown_DefaultActiveStatusUpdateIntervalMin.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numericUpDown_DefaultActiveStatusUpdateIntervalMin.Value = new System.Decimal(new int[] {
																											 12,
																											 0,
																											 0,
																											 0});
			// 
			// label6
			// 
			this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label6.Location = new System.Drawing.Point(285, 32);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(8, 16);
			this.label6.TabIndex = 9;
			this.label6.Text = ":";
			this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// button_OK
			// 
			this.button_OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.button_OK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.button_OK.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.button_OK.Location = new System.Drawing.Point(200, 347);
			this.button_OK.Name = "button_OK";
			this.button_OK.Size = new System.Drawing.Size(72, 23);
			this.button_OK.TabIndex = 7;
			this.button_OK.Text = "&OK";
			this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
			// 
			// button_Cancel
			// 
			this.button_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.button_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.button_Cancel.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.button_Cancel.Location = new System.Drawing.Point(280, 347);
			this.button_Cancel.Name = "button_Cancel";
			this.button_Cancel.Size = new System.Drawing.Size(72, 23);
			this.button_Cancel.TabIndex = 8;
			this.button_Cancel.Text = "Cancel";
			// 
			// button_BrowseSvn
			// 
			this.button_BrowseSvn.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.button_BrowseSvn.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.button_BrowseSvn.Location = new System.Drawing.Point(328, 24);
			this.button_BrowseSvn.Name = "button_BrowseSvn";
			this.button_BrowseSvn.Size = new System.Drawing.Size(24, 20);
			this.button_BrowseSvn.TabIndex = 2;
			this.button_BrowseSvn.Text = "...";
			this.button_BrowseSvn.Click += new System.EventHandler(this.button_BrowseSvn_Click);
			// 
			// button_BrowseTortoise
			// 
			this.button_BrowseTortoise.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.button_BrowseTortoise.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.button_BrowseTortoise.Location = new System.Drawing.Point(328, 72);
			this.button_BrowseTortoise.Name = "button_BrowseTortoise";
			this.button_BrowseTortoise.Size = new System.Drawing.Size(24, 20);
			this.button_BrowseTortoise.TabIndex = 4;
			this.button_BrowseTortoise.Text = "...";
			this.button_BrowseTortoise.Click += new System.EventHandler(this.button_BrowseTortoise_Click);
			// 
			// openFileDialog_svn
			// 
			this.openFileDialog_svn.DefaultExt = "exe";
			this.openFileDialog_svn.Filter = "svn.exe|svn.exe";
			// 
			// openFileDialog_Tortoise
			// 
			this.openFileDialog_Tortoise.DefaultExt = "exe";
			this.openFileDialog_Tortoise.Filter = "TortoiseProc.exe|TortoiseProc.exe";
			// 
			// comboBox_ItemActions
			// 
			this.comboBox_ItemActions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.comboBox_ItemActions.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.comboBox_ItemActions.Items.AddRange(new object[] {
																	  "Open folder",
																	  "Show change/full log",
																	  "Update",
																	  "Commit",
																	  "CheckNow"});
			this.comboBox_ItemActions.Location = new System.Drawing.Point(208, 232);
			this.comboBox_ItemActions.Name = "comboBox_ItemActions";
			this.comboBox_ItemActions.Size = new System.Drawing.Size(136, 21);
			this.comboBox_ItemActions.TabIndex = 6;
			// 
			// label7
			// 
			this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.label7.Location = new System.Drawing.Point(112, 236);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(88, 16);
			this.label7.TabIndex = 14;
			this.label7.Text = "On double click:";
			this.label7.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// checkBox_HideOnStartup
			// 
			this.checkBox_HideOnStartup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.checkBox_HideOnStartup.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox_HideOnStartup.Location = new System.Drawing.Point(112, 288);
			this.checkBox_HideOnStartup.Name = "checkBox_HideOnStartup";
			this.checkBox_HideOnStartup.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
			this.checkBox_HideOnStartup.Size = new System.Drawing.Size(232, 16);
			this.checkBox_HideOnStartup.TabIndex = 15;
			this.checkBox_HideOnStartup.Text = "Hide program to system tray on startup";
			// 
			// checkBox_CheckForNewVersion
			// 
			this.checkBox_CheckForNewVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.checkBox_CheckForNewVersion.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox_CheckForNewVersion.Location = new System.Drawing.Point(200, 312);
			this.checkBox_CheckForNewVersion.Name = "checkBox_CheckForNewVersion";
			this.checkBox_CheckForNewVersion.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
			this.checkBox_CheckForNewVersion.Size = new System.Drawing.Size(144, 16);
			this.checkBox_CheckForNewVersion.TabIndex = 16;
			this.checkBox_CheckForNewVersion.Text = "Check for new version";
			// 
			// numericUpDown_ShowBallonInterval
			// 
			this.numericUpDown_ShowBallonInterval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.numericUpDown_ShowBallonInterval.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.numericUpDown_ShowBallonInterval.Location = new System.Drawing.Point(253, 260);
			this.numericUpDown_ShowBallonInterval.Maximum = new System.Decimal(new int[] {
																							 99,
																							 0,
																							 0,
																							 0});
			this.numericUpDown_ShowBallonInterval.Minimum = new System.Decimal(new int[] {
																							 1,
																							 0,
																							 0,
																							 0});
			this.numericUpDown_ShowBallonInterval.Name = "numericUpDown_ShowBallonInterval";
			this.numericUpDown_ShowBallonInterval.Size = new System.Drawing.Size(40, 20);
			this.numericUpDown_ShowBallonInterval.TabIndex = 17;
			this.numericUpDown_ShowBallonInterval.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numericUpDown_ShowBallonInterval.Value = new System.Decimal(new int[] {
																						   10,
																						   0,
																						   0,
																						   0});
			// 
			// label10
			// 
			this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.label10.Location = new System.Drawing.Point(112, 264);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(240, 16);
			this.label10.TabIndex = 18;
			this.label10.Text = "Hide system tray ballon after                seconds";
			// 
			// checkBox_ChangeLogBeforeUpdate
			// 
			this.checkBox_ChangeLogBeforeUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.checkBox_ChangeLogBeforeUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox_ChangeLogBeforeUpdate.Location = new System.Drawing.Point(112, 208);
			this.checkBox_ChangeLogBeforeUpdate.Name = "checkBox_ChangeLogBeforeUpdate";
			this.checkBox_ChangeLogBeforeUpdate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
			this.checkBox_ChangeLogBeforeUpdate.Size = new System.Drawing.Size(232, 16);
			this.checkBox_ChangeLogBeforeUpdate.TabIndex = 19;
			this.checkBox_ChangeLogBeforeUpdate.Text = "Need to see Change Log before update";
			// 
			// SettingsForm
			// 
			this.AcceptButton = this.button_OK;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.CancelButton = this.button_Cancel;
			this.ClientSize = new System.Drawing.Size(362, 383);
			this.Controls.Add(this.checkBox_ChangeLogBeforeUpdate);
			this.Controls.Add(this.numericUpDown_ShowBallonInterval);
			this.Controls.Add(this.checkBox_CheckForNewVersion);
			this.Controls.Add(this.checkBox_HideOnStartup);
			this.Controls.Add(this.label7);
			this.Controls.Add(this.comboBox_ItemActions);
			this.Controls.Add(this.button_BrowseTortoise);
			this.Controls.Add(this.button_BrowseSvn);
			this.Controls.Add(this.button_Cancel);
			this.Controls.Add(this.button_OK);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.textBox_TortoiseSVNpath);
			this.Controls.Add(this.textBox_SVNpath);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.label10);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.Name = "SettingsForm";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Settings";
			this.Load += new System.EventHandler(this.SettingsForm_Load);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultActiveStatusUpdateIntervalSec)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultIdleStatusUpdateIntervalSec)).EndInit();
			this.groupBox1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultIdleStatusUpdateIntervalHour)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultActiveStatusUpdateIntervalHour)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultIdleStatusUpdateIntervalMin)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_DefaultActiveStatusUpdateIntervalMin)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShowBallonInterval)).EndInit();
			this.ResumeLayout(false);

		}

		#endregion

		
		private void SettingsForm_Load(object sender, System.EventArgs e)
		{
			textBox_SVNpath.Text = Config.SVNpath;
			textBox_TortoiseSVNpath.Text = Config.TortoiseSVNpath;
			
			numericUpDown_DefaultActiveStatusUpdateIntervalHour.Value = Config.DefaultActiveStatusUpdateInterval / 3600;
			numericUpDown_DefaultActiveStatusUpdateIntervalMin.Value = (Config.DefaultActiveStatusUpdateInterval % 3600) / 60;
			numericUpDown_DefaultActiveStatusUpdateIntervalSec.Value = Config.DefaultActiveStatusUpdateInterval % 60;

			numericUpDown_DefaultIdleStatusUpdateIntervalHour.Value = Config.DefaultIdleStatusUpdateInterval / 3600;
			numericUpDown_DefaultIdleStatusUpdateIntervalMin.Value = (Config.DefaultIdleStatusUpdateInterval % 3600) / 60;
			numericUpDown_DefaultIdleStatusUpdateIntervalSec.Value = Config.DefaultIdleStatusUpdateInterval % 60;

			checkBox_ChangeLogBeforeUpdate.Checked = Config.ChangeLogBeforeUpdate;
			comboBox_ItemActions.SelectedIndex = (int) Config.ItemDoubleClickAction;
			numericUpDown_ShowBallonInterval.Value = Config.ShowBallonInterval / 1000;
			checkBox_HideOnStartup.Checked = Config.HideOnStartup;
			checkBox_CheckForNewVersion.Checked = Config.CheckForNewVersion;
		}


		private void button_OK_Click(object sender, System.EventArgs e)
		{
			Config.SVNpath = textBox_SVNpath.Text;
			Config.TortoiseSVNpath = textBox_TortoiseSVNpath.Text;

			Config.DefaultActiveStatusUpdateInterval = 
				(int)numericUpDown_DefaultActiveStatusUpdateIntervalHour.Value * 3600
				+ (int)numericUpDown_DefaultActiveStatusUpdateIntervalMin.Value * 60 
				+ (int)numericUpDown_DefaultActiveStatusUpdateIntervalSec.Value;

			Config.DefaultIdleStatusUpdateInterval = 
				(int)numericUpDown_DefaultIdleStatusUpdateIntervalHour.Value * 3600
				+ (int)numericUpDown_DefaultIdleStatusUpdateIntervalMin.Value * 60
				+ (int)numericUpDown_DefaultIdleStatusUpdateIntervalSec.Value;

			Config.ChangeLogBeforeUpdate = checkBox_ChangeLogBeforeUpdate.Checked;
			Config.ItemDoubleClickAction = (Config.Action) comboBox_ItemActions.SelectedIndex;
			Config.ShowBallonInterval = (int)numericUpDown_ShowBallonInterval.Value * 1000;
			Config.HideOnStartup = checkBox_HideOnStartup.Checked;
			Config.CheckForNewVersion = checkBox_CheckForNewVersion.Checked;

			Config.SaveSettings();
			Close();
		}


		private void button_BrowseSvn_Click(object sender, System.EventArgs e)
		{
			if (openFileDialog_svn.ShowDialog (this) == DialogResult.OK)
			{
				textBox_SVNpath.Text = openFileDialog_svn.FileName;
				CheckPathes (sender, e);
			}
		}

		
		private void button_BrowseTortoise_Click(object sender, System.EventArgs e)
		{
			if (openFileDialog_Tortoise.ShowDialog (this) == DialogResult.OK)
			{
				textBox_TortoiseSVNpath.Text = openFileDialog_Tortoise.FileName;
				CheckPathes (sender, e);
			}
		}


		private void CheckPathes (object sender, System.EventArgs e)
		{
			button_OK.Enabled = true;
			textBox_SVNpath.BackColor = textBox_TortoiseSVNpath.BackColor = Color.White;

			if (!File.Exists (textBox_SVNpath.Text))
			{
				textBox_SVNpath.BackColor = Color.Yellow;
				button_OK.Enabled = false;

			}
				
			if (!File.Exists (textBox_TortoiseSVNpath.Text))
			{
				textBox_TortoiseSVNpath.BackColor = Color.Yellow;
				button_OK.Enabled = false;
			}
		}
	}
}
